#pragma once
#include <windows.h>

namespace gname
{
	class IIndexBuffer
	{
	public:
	virtual void	Alloc	( int n ) = 0;
	virtual void	Resize	( int n ) = 0;
	virtual void	Clear	( void )  = 0;
	virtual unsigned Size  ( void )	const =  0;
    virtual void    IboInit() = 0;
	virtual unsigned GetId() const        =  0;
	virtual void    SetIndexData(unsigned char *data) = 0;
	virtual int	    GetIndexType() const   = 0;
	virtual bool	Empty ()		const      = 0;
	virtual void	Lock()   = 0;
	virtual void	Unlock() = 0;
	};
}